package cn.lix.sc.rpc.impl.common.dto;

import java.io.Serializable;

public class RpcRequest implements Serializable {

    private static final long serialVersionUID = 267111435107722023L;

    private String serviceClass;

    private String beanName;

    private String methodKey;

    private String parameters;

    public String getServiceClass() {
        return serviceClass;
    }

    public void setServiceClass(String serviceClass) {
        this.serviceClass = serviceClass;
    }

    public String getBeanName() {
        return beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    public String getMethodKey() {
        return methodKey;
    }

    public void setMethodKey(String methodKey) {
        this.methodKey = methodKey;
    }

    public String getParameters() {
        return parameters;
    }

    public void setParameters(String parameters) {
        this.parameters = parameters;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("{");
        sb.append("\"serviceClass\":\"").append(serviceClass).append('\"');
        sb.append(", \"beanName\":\"").append(beanName).append('\"');
        sb.append(", \"methodKey\":\"").append(methodKey).append('\"');
        sb.append(", \"parameters\":\"").append(parameters).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
